#include <assert.h>
#include <stdlib.h>
#include "drv_swi.h"
#include "drv_ed_utility.h"
#include "dev_swi.h"

#define URGENT_EVENT_HANDLER RTC_Alarm_IRQHandler

void Dev_SWI_Init(void)
{
    HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
    HAL_NVIC_SetPriority(URGENT_IRQn, 14, 0);
    HAL_NVIC_EnableIRQ(URGENT_IRQn);
}

void PendSV_Handler(void)
{
    ED4E_KeyEP_Handler();
}

void URGENT_EVENT_HANDLER(void)
{
    ED4E_UrgentEP_Handler();
}
